//package cn.smxy.admin.config;
//
////import cn.smxy.admin.interceptor.LoginProtectInterceptor;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
//@Configuration
//public class MvcConfig implements WebMvcConfigurer {
//
//    /**
//     * 拦截器
//     * @param registry
//     */
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        //拦截后台管理模块的路径  排除登录和资源路径
//        registry.addInterceptor(new LoginProtectInterceptor()).addPathPatterns("/**")
//                .excludePathPatterns("/","/index.html","/index","/static/**",
//                        "/login", "/logout",
//                        "/api/**", "/css/**", "/images/**",
//                        "/js/**", "/lib/**","/captcha"
//                );
//    }
//}
